package x.amadeus.utils;

import java.util.Calendar;
import java.util.Date;

public class TermUtils {
	public static String getTerm()
	{
		Calendar cal = Calendar.getInstance();
		int year = cal.get(cal.YEAR);
		int mouth = cal.get(cal.MONTH);
		String term;
		if(mouth >= 9 || mouth <= 2) {
			if(mouth >=9){
				term = year+"01";
			}else{
				term = year-1+"01";
			}
		}else {
			term = year-1+"02";
		}
		return term;
	}
}
